package vip.rssc.mybatisplus.configs;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>Description: [MybatisPlusConfiguration]</p >
 * Created on 2021年10月20日
 *
 * @author <a href="chenjia@fehorizon.com">CJ</a>
 * @version 1.0
 * Copyright (c) 2021 上海宏信建设发展有限公司
 */
@Configuration
public class MybatisPlusConfiguration {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor interceptor = new PaginationInterceptor();
        return interceptor;
    }

}
